package com.yksj.healthtalk.ui.chatting;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.yksj.healthtalk.ui.R;
import com.yksj.healthtalk.ui.chatting.InviteAttentionActivity.FriendsListAdapter;

/**
 * 
 *展示用户列表
 * @author zhao
 *
 */
public class UserListFragment extends Fragment {
	ListView mListView;
	FriendsListAdapter mAdapter;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.invite_listview_layout, null);
		mListView = (ListView)view.findViewById(android.R.id.list);
		return view;
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		
		mAdapter = new FriendsListAdapter(getLayoutInflater(savedInstanceState),getActivity());
		mListView.setAdapter(mAdapter);
	}
}
